<%-- 
    Document   : Delete_payment
    Created on : Aug 29, 2013, 3:20:00 PM
    Author     : 4410s
--%>

<%@page import="java.util.HashMap"%>
<%@page import="java.util.Iterator"%>
<%@page import="java.util.Set"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Update Payment</title>
        <link rel="stylesheet" type="text/css" href="/css/style.css"/>
        <style type="text/css">
            table.styletable{
                font-family: verdana,arial,sans-serif;
                font-size:11px;
                color:black;
                width: 100%;
            }
            table.styletable th {
                background:#990000;
                font-size: 13px;
                color: white;
               
                padding: 8px;
               
            }
            table.styletable td {
                background:#ff99ff;
                
                padding: 8px;
              
            }
        </style>
    </head>

    <body>
        <%

            HashMap hm = (HashMap) request.getSession().getAttribute("Register_Data");
            Set charges = hm.keySet();
            Iterator itr = charges.iterator();
        %>
        <form method="POST">
            <table border="1" class="styletable">
                <thead>
                    <tr>
                        <th>Registration ID </th>
                        <th>Chagers ID </th>
                        <th>UserName</th>
                        <th>Date Registration</th>
                        <th>Card Types</th>
                        <th>Card Number</th>
                        <th>Status </th>
                        <th>UserName Admin </th>
                        <th>Update </th>
                        <th>Delete </th>

                    </tr>
                </thead>

                <tbody>

                    <%
                        int sno = 0;
                    while (itr.hasNext()) {
                        Object keyid = itr.next();
                        HashMap hm2 = (HashMap)hm.get(keyid);
                        sno++;
                    %>
                    <tr>
                        <td><% out.println(hm2.get("id_registration"));%></td>
                        <td><% out.println(hm2.get("id_charges"));%></td>
                        <td><% out.println(hm2.get("username").toString());%></td>
                        <td><% out.println(hm2.get("date_registration").toString());%></td>
                        <td><% out.println(hm2.get("card_types").toString());%></td>
                        <td><% out.println(hm2.get("card_number").toString());%></td>
                        <td><% out.println(hm2.get("status").toString());%></td>
                        <td><% out.println(hm2.get("username_admin").toString());%></td>



                        <td><a style="text-decoration: none" href="View_Regisetration_Data?id_registration=<% out.println(hm2.get("id_registration"));%>"><img src="images/update.png" border="0" width="25" height="25" alt="Update"/></a></td>
                        <td><a style="text-decoration: none" href="Delete_Registration_data?id_registration=<% out.println(hm2.get("id_registration"));%>"><img src="images/Delete.png" width="25" border="0" height="25" alt="Delete"/></a></td>
                    </tr>
                    <%
                        }
                    %>
                </tbody>
            </table>
        </form>
    </body>
</html>
